package cn.edu.zafu.bigdata.smj;
class MathOperations{
    public int add(int a, int b){
        return a+b;
    }

    public double add(double a, double b){
        return a+b;
    }

    public int add(int a, int b, int c){
        return a+b+c;
    }
}

public class TestMathOperations {
    public static void main(String[] args){
        MathOperations mathOps = new MathOperations();

        int sumint = mathOps.add(1,2);
        System.out.println(sumint);

        double sumdouble = mathOps.add(1.5,2.2);
        System.out.println(sumdouble);

        int sumthreeint = mathOps.add(1,2,3);
        System.out.println(sumthreeint);
    }
}
